﻿using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections;


public class TipButton : MonoBehaviour {

	public string JobType;
	public MainController controller;

	void Start(){

		Button btn = GetComponent<Button> ();
		btn.onClick.AddListener (delegate() {
			this.OnClick();
		});

	}

	public void OnClick() {

		switch (JobType) {
		case "Warrior":
			controller.ShowTip ( TJobType.Warrior  );
			break;
		case "Warlock":
			controller.ShowTip ( TJobType.Warlock  );
			break;
		case "Rouge":
			controller.ShowTip ( TJobType.Rouge  );
			break;
		}

	}

}
